package com.leyou.item.inter.pojo;

import java.io.Serializable;
import javax.persistence.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @数表名称 tb_brand
 * @开发日期 2020-03-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name="tb_brand")
@ApiModel(value = "Brand",description = "结果类")
public class Brand implements Serializable {
    
    /** 品牌id (主健ID) */
    @Id
    @Column(name="id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "品牌id", name = "id")
    private Long id;

    /** 品牌名称 */
    @Column(name="name")
    @ApiModelProperty(value = "品牌名称", name = "name")
    private String name;

    /** 品牌图片地址 */
    @Column(name="image")
    @ApiModelProperty(value = "品牌图片地址", name = "image")
    private String image;

    /** 品牌的首字母 */
    @Column(name="letter")
    @ApiModelProperty(value = "品牌的首字母", name = "letter")
    private String letter;

    public Brand(long id, String name) {
        this.id = id;
        this.name = name;
    }

    private static final long serialVersionUID = 1L;
}